package cn.xfdzx.android.apps.shop.fragment.home.model;

import cn.xfdzx.android.apps.shop.base.BaseModelImpl;
import cn.xfdzx.android.apps.shop.base.NetCallBackImpl;
import cn.xfdzx.android.apps.shop.bean.FoundGoodContentBeen;
import cn.xfdzx.android.apps.shop.fragment.home.request.NearGoodsRequest;
import cn.xfdzx.android.apps.shop.fragment.home.request.NearShopRequest;
import cn.xfdzx.android.apps.shop.fragment.home.response.HomeNearShop;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;

public class MarketNearGoodsModel extends BaseModelImpl  implements IHomeMarketMode {
    @Override
    public void getNearGoodsData(NearGoodsRequest nearGoodsRequest, NetCallBackImpl<FoundGoodContentBeen> netCallBack) {
        loadData(RetrofitClient.getInstance().getApi().nearFoundGoods(nearGoodsRequest.getMap()),netCallBack);
    }

    @Override
    public void getNearShopsData(NearShopRequest nearShopRequest, NetCallBackImpl<HomeNearShop> netCallBack) {
        loadData(RetrofitClient.getInstance().getApi().nearFoundShop(nearShopRequest.getMap()),netCallBack);

    }
}
